﻿@{
    Layout = "~/Views/Samples/Generic/_Index.cshtml";

}

@section uploadPanelTop
{
            <table class="settings">
                <tbody>
                    <tr>
                        <th style="font-weight:bold;border-bottom:solid 1px #ccc">File category</th>
                    </tr>
                    <tr>
                        <td>
                            <select id="fileCategory">
                                <option value="documents">Documents</option>
                                <option value="images">Images</option>
                                <option value="audio">Audio</option>
                                <option value="video">Video</option>
                            </select>
                        </td>
                    </tr>
                </tbody>
            </table>
            <p>The category selected above will be passed to the server with the upload (as a cookie), and used to specify the folder in which the upload files are stored.</p>
}

@section js_onSessionStarted
{
    kw("@SampleHelper.ResolveId("slickUpload")").set_Data("fileRoot", document.getElementById("fileCategory").value);
}